package com.ncs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName reservation
 */
@TableName(value ="reservation")
@Data
public class Reservation implements Serializable {
    /**
     * 预订ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 预订顾客
     */
    private String name;

    /**
     * 预订手机号
     */
    private String phone;

    /**
     * 预订时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date datetime;

    /**
     * 预订人数
     */
    private Integer cllentNumber;

    /**
     * 预订餐桌号
     */
    private Integer tableId;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}